<?php
slot ( 'title', 'Deadline List' );
?>
<?php slot ('header')?>
<h1>Deadline Listing</h1>
<?php end_slot()?>
<?php slot ('side_bar') ?>
<h2>View</h2>
<ul>
    <li><?php echo link_to('Calendar', '@planning_calendar_no_dates?pr_slug='.$prSlug);?></li>
    <li><?php echo link_to('List', '@planning_list?pr_slug='.$prSlug )?></li>
    <li><?php echo link_to('Gantt Chart', '@planning_chart?pr_slug='.$prSlug)?></li>
</ul>
<h2>Search</h2>
<ul>
    <li><?php echo link_to('Search', '@planning_search?pr_slug='.$prSlug )?></li>
</ul>
<h2>Deadlines</h2>
<ul>
    <li><?php echo link_to('Add', '@planning_create?pr_slug='.$prSlug )?></li>
</ul>
<?php end_slot() ?>

<div id="plan">
<?php
	foreach ($parents as $parent)
	{
	    $parent->outputInfo($group, $dueBefore, $importance, $createdBy);
        echo "<br>";
	}

	// Get today's date.
	$date = time ();
	$month = date ( 'm', $date );
	$year = date ( 'Y', $date );
?>
</div>
